GitHub 您所在的位置:网站首页 systemctl disable now firewalld GitHub

GitHub

2023-03-30 10:39| 来源: 网络整理| 查看: 265

InstallingKubernetesVer1_18InRHEL8

Installation of Kubernetes in RHEL 8 using Kubeadm Package Manager. Installation of Kubernetes Dashboard for having brief overview of the Kubernetes Cluster. The Repo code is example/reference to be used as steps to install Docker and Kubernetes in RHEL 8. I have added elaborate steps in the README file. Please follow the same. This is a simple K8s cluster Installation & Docker installation in 3 VMs. Important Note: The default interface naming convention in RHEL8 start with "ens" instead of "eth" as in RHEL7.

> /etc/hosts" 6b) Execute the shell script after passing the correct Interface name. [Correct Interface name should be passed] --> you can find the correct interface name using the command. 7) Now again adjust the file "/etc/hosts" with the IP and HOSTNAME which should look like below, For eg. 192.168.142.131 Node1 192.168.142.132 Node2 192.168.142.128 Master">Preview: I have used VMWare Workstation Player(VMWare Virtualization Software Suite) to spin up 3 RHEL 8[8.2 (Ootpa)] VM's. Within Minimal Install option, booted the VM and below configuration were made to each of the VM. 1) Login with root user & change to GUI with cmd: 2) To make the GUI option as default, use the command:- 3) Creae a new OS user and provide sudo privilege to this new user. 4) Set the hostname of the VM to be used for Kubernetes via the command. 5) Now reboot the VM to use the GNOME GUI. 6a) Additionally setup a shell script to setup the hosts with the correct IP whose content is given below. #!/bin/bash set -e IFNAME=$1 ADDRESS="$(ip -4 addr show $IFNAME | grep "inet" | head -1 |awk '{print $2}' | cut -d/ -f1)" sudo bash -c "echo '${ADDRESS} ${HOSTNAME} ${HOSTNAME}.local' >> /etc/hosts" 6b) Execute the shell script after passing the correct Interface name. [Correct Interface name should be passed] --> you can find the correct interface name using the command. 7) Now again adjust the file "/etc/hosts" with the IP and HOSTNAME which should look like below, For eg. 192.168.142.131 Node1 192.168.142.132 Node2 192.168.142.128 Master Docker Install Steps for RHEL 8 VM: Create a shell script with the below content, just copy the content and Docker should be installed in each VMs. For the same there is a file called installDocker.sh in the repo code. But still the content is below mentioned. #!/bin/bash sudo dnf config-manager --add-repo=https://download.docker.com/linux/centos/docker-ce.repo sudo dnf list docker-ce sudo dnf install docker-ce --nobest -y sudo systemctl start docker sudo systemctl enable docker sudo bash -c "cat >> /etc/docker/daemon.json" /etc/yum.repos.d/kubernetes.repo" /proc/sys/net/bridge/bridge-nf-call-iptables" sudo sysctl --system sudo bash -c "cat >> /etc/yum.repos.d/kubernetes.repo" /etc/yum.repos.d/kubernetes.repo" /proc/sys/net/bridge/bridge-nf-call-iptables" sudo sysctl --system sudo bash -c "cat >> /etc/yum.repos.d/kubernetes.repo"


【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有